package PTA06;

import java.util.Scanner;

public class Test5_1 {
	public static void main(String[] args) {
		int []arr=new int[5];
		Scanner in=new Scanner(System.in);
		while(in.hasNext()){
			String choice=in.next();
			if(choice.equals("arr")){
				try{
					int location=in.nextInt();
				     location=arr[location];
				} catch(ArrayIndexOutOfBoundsException e) {
					e.printStackTrace();
				}
				if(choice.equals("arr")){
					try{
						int location=in.nextInt();
					     location=arr[location];
					} catch(ArrayIndexOutOfBoundsException e) {
						e.printStackTrace();
					}
			}
		}
	}
	 
		
	}
}

 
